﻿using Abp.Domain.Entities.Auditing;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Dto.TableReturnDto.Technique
{
    public class BackOperationDto : FullAuditedEntity<Guid>
    {
        [JsonIgnore]
        public override Guid Id { get; set; }
        public string UniqueId { get; set; }
        public int Type { get; set; }
        public Guid? ProcessId { get; set; }
        public Guid? StepId { get; set; }
        public Guid? TableId { get; set; }
        public Guid? RowId { get; set; }
        public Guid? ColumnId { get; set; }
        public string OldValue { get; set; }
        public string NewValue { get; set; }
        //用于导出
        public string TableFieldName { get; set; }
        public string FieldName { get; set; }
        public string FieldDisplayName { get; set; }

        public virtual Guid EditFileProcessId { get; set; }

        public string CreatorUserName { get; set; }

        public DateTime CreateTime { get; set; }


    }


    public class FileProcessOperationDto
    {

        /// <summary>
        /// 操作类型
        /// </summary>
        public int type { get; set; }

        public Guid? fileId { get; set; }

        /// <summary>
        /// 工序Id
        /// </summary>
        public Guid? processId { get; set; }
        /// <summary>
        /// 工步Id
        /// </summary>
        public Guid? stepId { get; set; }
        /// <summary>
        /// 数据所在行的Id
        /// </summary>
        public Guid? rowId { get; set; }

        /// <summary>
        /// 数据所在行的Id
        /// </summary>
        public Guid? columnId { get; set; }

        public string tableDisplayName { get; set; }


        public string fieldDisplayName { get; set; }
        public string oldValue { get; set; }

        public string newValue { get; set; }

        public DateTime? creationTime { get; set; }
        /// <summary>
        /// 数据所在行的Id
        /// </summary>
        public Guid? operationId { get; set; }

        public long? creatorUserId { get; set; }
        public string id { get; set; }
        public string CreatorUserName { get; set; }
    }
}
